import { createStore } from "vuex";
export default createStore({
  state: {
    //全局变量
    num: 0,
    username: "李四",
    page: 1,
  },
  mutations: {
    //全局函数
    editPageFn: (state, val) => {
      state.page = val;
    },
  },
  actions: {},
  modules: {},
});
